# encoding=utf-8
import numpy as np
array = np.arange(4)
print("array=", array)
b = array
c = array
d = b
array[0] = 11
print("array=", array)
print("b is array? ", b is array)
print("c is array? ", c is array)
print("d is array? ", d is array)
d[1:3] = [22, 33]   # array([11, 22, 33,  3])
print("array=", array)            # array([11, 22, 33,  3])
print("b=", b)            # array([11, 22, 33,  3])
print("c=", c)            # array([11, 22, 33,  3])

b = array.copy()    # deep copy
print(b)        # array([11, 22, 33,  3])
array[3] = 44
print("array=", array)        # array([11, 22, 33, 44])
print("b=", b)        # array([11, 22, 33,  3])

